| Conditions | 4 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | // PHP RUNNER ///// |
||
| 4 | function run_php(){ |
||
| 5 | const { spawn } = require('child_process'); |
||
| 6 | //const bat = spawn('cmd.exe', ['php/setenv.bat']); |
||
| 7 | bat = spawn('cmd.exe', ['/c', 'setenv.bat']); |
||
|
|
|||
| 8 | |||
| 9 | bat.stdout.on('data', (data) => { |
||
| 10 | console.log(data.toString()); |
||
| 11 | }); |
||
| 12 | |||
| 13 | bat.stderr.on('data', (data) => { |
||
| 14 | console.log(data.toString()); |
||
| 15 | }); |
||
| 16 | |||
| 17 | bat.on('exit', (code) => { |
||
| 18 | console.log(`Child exited with code ${code}`); |
||
| 19 | }); |
||
| 20 | } |
||
| 21 | ////////////////////////////////////// |
||
| 37 |